Skip to content

deps: bump rmcp to 3.11 and rustix to 1.1.6 (RUSTSEC-2026-0462, -0486) - #4

Merged
batuhansk merged 4 commits into
mainfrom
fix/rustsec-2026-0462-0486
Nov 17, 2026
Merged

batuhansk merged 4 commits into
mainfrom
fix/rustsec-2026-0462-0486

Conversation

@batuhansk

@batuhansk batuhansk commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1, fixes #2.

Changes

  • rmcp 1.7 → 3.11 fixes RUSTSEC-2026-0462 (the Streamable HTTP clients buffered response bodies with no size limit). borg-mcp only uses the child-process transport, which already bounds each line itself, so borg was not affected. The audit flagged the version anyway.
    • Content/RawContent → ContentBlock. The JSON on the wire is unchanged: each block keeps its type field.
    • CancelledNotificationParam is now #[non_exhaustive] and its request_id is optional, so it's built with ::new(Some(id), …).
  • rustix 1.1.4 → 1.1.6 (Cargo.lock only) fixes RUSTSEC-2026-0486 (unsound xattr reads on zero-length buffers). rustix is only a dev dependency, pulled in through tempfile.

CI fixes

  • MSRV 1.88: rmcp is now built with default-features = false. Its default server feature brought in uuid 1.29, which requires rustc 1.89 and broke the 1.88 clippy and test jobs. borg only needs client and transport-child-process. This also removes about 150 lines of unused dependencies from Cargo.lock.
  • cargo deny: deny.toml now ignores RUSTSEC-2026-0543 (chrono is unmaintained), with the reason written next to it. The advisory is informational, has no patched version, and chrono is a required dependency of rmcp, so there's nothing to upgrade to. This check was failing on main too. Remove the ignore once rmcp drops chrono.
  • Cargo 1.100 manifest warnings: each crate now inherits publish = false with publish.workspace = true instead of setting it again, which is what the comment in the workspace says it should do. I also removed workspace dependencies that no crate inherits: borg-loop, borg-mcp, borg-tools, borg-tracing and dashmap.
  • Audit workflow: the cargo audit job failed on pull requests even though it found no vulnerabilities. On PRs, rustsec/audit-check reports through a check run, and updating that check run returned 404. Since cargo deny already checks advisories on every push and PR, audit-check now runs only nightly and on manual dispatch, where it opens an issue for each new advisory. The workflow's push trigger is limited to main, as in ci.yml, so PR branches no longer run it twice. audit-check is pinned to upstream commit 858dc40, which is v2.0.0 moved to the Node 24 runtime (Node 20 is deprecated). The chrono ignore is added to .cargo/audit.toml too, so the nightly job doesn't open an issue for it.

Verification

Checked locally on Rust 1.100 (the version CI uses) and 1.88. There are no warnings from the manifests or clippy: cargo fmt --check, clippy (--all-targets --all-features -D warnings), and cargo test --workspace --all-features with 739 passed and 0 failed on each. cargo doc -D warnings is clean, and cargo deny check reports advisories, bans, licenses and sources all ok.

🤖 Generated with Claude Code

https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe

…EC-2026-0486)

rmcp 1.7 -> 3.11: patches RUSTSEC-2026-0462, unbounded response body
buffering in the Streamable HTTP clients. borg-mcp only uses the
child-process transport (which already bounds lines itself), so it was
not reachable, but the advisory fails the audit job.

Port borg-mcp to the 3.x API:
- `Content` / `RawContent` -> `ContentBlock` (same `type`-tagged wire shape)
- `CancelledNotificationParam` is non-exhaustive with an optional
  `request_id`; build it with `::new`

rustix 1.1.4 -> 1.1.6 (lockfile only): patches RUSTSEC-2026-0486,
unsound xattr reads on zero-length buffers. Dev-only via tempfile.

Fixes #1
Fixes #2

Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
- rmcp: disable default features. borg-mcp only needs `client` and
  `transport-child-process`; the default `server` feature pulled in
  uuid 1.29, which requires rustc 1.89 and broke the 1.88 clippy/test
  jobs. Also drops ~150 lines of unused deps from the lockfile.
- deny.toml: ignore RUSTSEC-2026-0543 (chrono unmaintained). It is
  informational with no patched version, and chrono is a non-optional
  dependency of rmcp, so there is nothing to upgrade to yet.

Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
- Crates now inherit `publish` via `publish.workspace = true` instead of
  each repeating `publish = false`, so the workspace field is actually
  used (as its comment intends: new crates are unpublishable by default).
- Drop workspace dependencies no crate inherits: borg-loop, borg-mcp,
  borg-tools, borg-tracing (nothing depends on them) and dashmap (unused).

No resolved-dependency change; Cargo.lock is untouched.

Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
…nore

- The `cargo audit` job failed on pull requests: rustsec/audit-check
  reports through a check run there, and updating it 404s. cargo deny
  already gates advisories on push/PR, so audit-check now runs only on
  schedule/workflow_dispatch, where it opens an issue per advisory.
- `push` is limited to main (as in ci.yml), so PR branches no longer run
  the workflow twice.
- Pin audit-check to upstream main (858dc40), which is v2.0.0 with the
  runtime moved to Node 24; Node 20 actions are deprecated.
- .cargo/audit.toml ignores RUSTSEC-2026-0543 (chrono unmaintained), like
  deny.toml, so the nightly job does not file an issue for it.

Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
@batuhansk
batuhansk merged commit 7030d45 into main Nov 17, 2026
11 checks passed
@batuhansk
batuhansk deleted the fix/rustsec-2026-0462-0486 branch November 17, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant